import request from '@/utils/request'

// 列表渲染
export function getAllAdvListApi (params) {
  return request({
    url: '/content/adv',
    method: 'get',
    params
  })
}

// 新增功能
export function addAdvListApi (data) {
  return request({
    url: '/content/adv',
    method: 'post',
    data
  })
}

// 回显功能
export function seeAdvListApi (id) {
  return request({
    url: '/content/adv/' + id,
    method: 'get',
  })
}

// 修改功能
export function editAdvListApi (data) {
  return request({
    url: '/content/adv/' + data.id,
    method: 'put',
    data,
  })
}

// 删除功能
export function delAdvListApi (id) {
  return request({
    url: '/content/adv/' + id,
    method: 'delete',
  })
}

// // 获取详情
// export const delSeekApi = (id)=>{
//   return request({
//       url:'/seek/'+id,
//       method:'delete'
//   })
// }